//
//  OosQuery.h
//  com.oos.kraken
//
//  Created by Pablo Gonzalez on 2/16/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <oos4ios/Options/OosOptionsStore.h>
#import "GDataQuery.h"

@interface OosQuery : GDataQuery {
	
}

- (void) packStore: (OosOptionsStore *) store;

+ (OosQuery *) query: (NSURL *) queryURL;

@property (nonatomic, retain) NSString *appToken;

/**
 Number of entries returned 
 */
@property (nonatomic, retain) NSNumber *count;
/**
 Page that is required 
 */
@property (nonatomic, retain) NSNumber *page;

/**
 Order of the results
 */

@property (nonatomic, retain) NSString *order;

/**
 The date since we want updates.
 */
@property (nonatomic, retain) NSDate *since;

/** 
 Fields used for filtering the results returned by the server 
 */
- (void) addField: (NSString *) field;
- (void) removeField: (NSString *) field;
- (BOOL) hasField: (NSString *) field;

@property (nonatomic, retain) NSString *fields;

@property (nonatomic, retain) NSString *alt;

@property (nonatomic, retain) NSString *uuid;

- (BOOL) clearFields;

@end
